import { defineStore } from 'pinia';
import type { AuthState } from '@/store/interface';
import { menu } from '@/router/routes';

export const useAuthStore = defineStore('auth', {
  state: (): AuthState => ({
    // 菜单权限列表
    authMenuList: [],
  }),
  actions: {
    // Get AuthMenuList
    getAuthMenuList() {
      this.authMenuList = [...menu];
    },
  },
});
